package com.iot.ammeter.dto.web.menu;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName: MenuDTO
 * @Author: Basil
 * @Date: 2021/10/13 下午4:45
 * @Version: 1.0
 * @Description: 菜单数据传输对象
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MenuDTO {
    @ApiModelProperty(value = "id")
    private String menuId;

    @ApiModelProperty(value = "菜单名称")
    private String menuName;

    @ApiModelProperty(value = "级别，1表示一级标题，2表示二级标题，以此类推")
    private Integer level;

    @ApiModelProperty(value = "父级id")
    private String parentId;

    @ApiModelProperty(value = "路径")
    private String path;

    @ApiModelProperty(value = "子菜单")
    private List<MenuDTO> subMenu;
}
